<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
    pageContext.setAttribute("basePath",basePath);
    String bankRequestType =request.getAttribute("bankRequestType").toString();
    String queryPath = "";
    if(bankRequestType.equals("0")){
        queryPath = basePath+"/bank/bankOrderRequest";
    }else{
        queryPath = basePath+"/bank/cardOrderRequest";
    }
    pageContext.setAttribute("queryPath",queryPath);
%>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>银行调单系统</title>
    <%@include file="/common/header.jsp"%>
    <script type="text/javascript">
        queryPath ='${queryPath}';
        bankRequestType ='${bankRequestType}';
    </script>
    <script type="text/javascript" src="${basePath}/js/bankorder/batchRequest.js"></script>
</head>
<body class="hold-transition fq-white sidebar-mini fq-body">

    <div style="background-color: #ecf0f5">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="fq-tit-h1">
                <div class="fq-tit-box  clearfix">
                    <i class="fa fa-bank iconBg fl"></i>
                    <div class="fl">
                        <h2 class="">银行查询</h2>
                        <small>Bank inquiry</small>
                    </div>
                </div>
            </div>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title ">
                        批量新增
                    </h3>
                </div>
                <div class="box-body">
                    <form id='myForm' method="post" enctype="multipart/form-data" action=queryPath+"/batchBankOrderRequest.do">
                    <div class="w-bank-center-area clearfix">
                        <ul>
                            <li class="w-bank-infor-list clearfix">
                                <div class="bank-order-key">
                                    <p class="bankRequestTypeCls">批量银行订单文件：</p>
                                </div>
                                <div class="bank-order-val">
                                    <div class="cz-area">
                                        <a href=""><input type="file" id="uploadObject" name="uploadObject"></a>
                                        <a href="javascrpit:void(0)" onclick="subForm()"><i class="fa fa-fw fa-file-text"></i>导入</a>
                                    </div>
                                </div>
                            </li>
                            <li class="w-bank-infor-list clearfix">
                                <div class="bank-order-key">
                                    <p>模板下载：</p>
                                </div>
                                <div class="bank-order-val">
                                    <div class="mb-area">
                                        <a href="" class="mb-text">银行订单号查询模板20170323.xlsx</a>
                                    </div>
                                </div>
                            </li>
                        </ul>

                    </div>
                    </form>
                </div>
                <!-- /.box-body -->
            </div>

        </section>


        <!-- /.content -->
    </div>


<!--新增成功弹层-->
<div class="panelboxR"  style="display: none;position: absolute;top: 100px;left: 100px;">
    <div class="panelwrap">
        <div class="paneltitle">
            <span class="text">操作提示</span>
            <span class="panelclose"></span>
        </div>
        <div class="panelcon clearfix">
            <div class="panel-text-area">
                <span class="text-tips success-tips">
                    <i class="tips"></i>
                    恭喜您，新增成功！
                </span>
                <!--<p class="sub-text">原因可能是：用户不存在或用户状态异常</p>-->
            </div>
            <div class="panel-btn">
                <a href="javascript:;" class="sign-out">确定</a>
            </div>
        </div>
    </div>
</div>

<!--新增失败弹层-->
<div class="panelboxR"  style="display: none;position: absolute;top: 100px;left: 500px;">
    <div class="panelwrap">
        <div class="paneltitle">
            <span class="text">操作提示</span>
            <span class="panelclose"></span>
        </div>
        <div class="panelcon clearfix">
            <div class="panel-text-area">
                <span class="text-tips error-tips">
                    <i class="tips"></i>
                    银行订单号76543567898重复，新增失败！
                </span>
            </div>
            <div class="panel-btn">
                <a href="javascript:;" class="sign-out">确定</a>
            </div>
        </div>
    </div>
</div>
</body>
</html>
